import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

//引入Vant
import Vant from 'vant'
import 'vant/lib/index.css'

Vue.use(Vant) //全局注册使用

// 全局样式
import '@/styles/index.scss'

import 'lib-flexible'  //淘宝适配 meta
Vue.config.productionTip = false

import {reg} from '@/utils/validate'
Vue.prototype.$reg = reg;


import {http} from '@/api'
Vue.prototype.$ajax = http

import '@/utils/mixins'
import{baseURL} from '@/api/config'
Vue.prototype.$baseURL = baseURL

import '@/utils/global' //引入自定义组件
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
